package com.example.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.Email;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Student {
    private Integer id;//主键ID
    private String name;
    private String nickname;
    private String account;
    private String stuPic;
    private String phone;
    @Email
    private String email;
    private String address;
    private String sex;
    private Integer creditScore;
    private String open_id;
    private String description;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;//创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;//更新时间

}
